<<<<<<< HEAD
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Kefu extends CI_Controller {
	
	function test(){
		//echo "99";exit;
		
		
		//$this->load->model('Shop_model','shop');
		
		//echo round(floor(0.025864363*1000)/1000,3);exit;
		
		//echo  round(10/12/30, 3);exit;
		
		//for($i = 0 ;$i<100;$i++){
			//$username =$i+50;
			
			//$k = $i+100;
			
			//$this->shop->test($username,$k);
		//}
		

	}
	
	function generate_rand($l){ 		
		$c= "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; 
		srand((double)microtime()*1000000); 
		for($i=0; $i<$l; $i++) { 
			$rand.= $c[rand()%strlen($c)]; 
		} 
		return $rand; 
	} 
	
	function index(){
		$this->load->model('User_model', 'user');
		$tellList = array(
			'189'=>'4009943366-8026',
			'1742'=>'4009943366-8022',
			'6521'=>'4009943366-8021',
			'7047'=>'4009943366-8029',
			'17245'=>'4009943366-8025',
			'20492'=>'4009943366-8001',
		);
		//$kefu_list = $this->user->get_kefu_list();
		$data['kefu_list'] = $this->user->get_kefu_list();
		$data['tellList'] = $tellList;
		$data['title'] 		= "客服中心".' - '.CON_KEYWORDS;
		$this->load->view('user/user_kefu_list',$data);
	}
	
	
	
=======
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Kefu extends CI_Controller {
    
	function test(){
		//echo "99";exit;
		
		
		//$this->load->model('Shop_model','shop');
		
		//echo round(floor(0.025864363*1000)/1000,3);exit;
		
		//echo  round(10/12/30, 3);exit;
		
		//for($i = 0 ;$i<100;$i++){
			//$username =$i+50;
			
			//$k = $i+100;
			
			//$this->shop->test($username,$k);
		//}
		

	}
	
	function generate_rand($l){ 		
		$c= "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; 
		srand((double)microtime()*1000000); 
		for($i=0; $i<$l; $i++) { 
			$rand.= $c[rand()%strlen($c)]; 
		} 
		return $rand; 
	} 
	
	function index(){
		$this->load->model('User_model', 'user');
		$tellList = array(
			'189'=>'4009943366-8026',
			'1742'=>'4009943366-8022',
			'6521'=>'4009943366-8021',
			'7047'=>'4009943366-8029',
			'17245'=>'4009943366-8025',
			'20492'=>'4009943366-8001',
		);
		//$kefu_list = $this->user->get_kefu_list();
		$data['kefu_list'] = $this->user->get_kefu_list();
		$data['tellList'] = $tellList;
		$data['title'] 		= "客服中心".' - '.CON_KEYWORDS;
		$this->load->view('user/user_kefu_list',$data);
	}
	
	
	
>>>>>>> d47623b610d79a4eeb489500830c00d70933f414
}